﻿@model IEnumerable<GZNest.Entity.Spin.Biz.ProductionOrder>

@{
    ViewBag.Title = "Production Order";
}

<p>
    @Html.ActionLink("Create New", "Create")
</p>
<table class="table">
    <tr>
        <th>
            @Html.DisplayNameFor(model => model.Description)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.OrderLength)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.CompletedLenght)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.DailyProduction)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.CreatedDateTime)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.LastModifiedDatetime)
        </th>
        <th></th>
    </tr>

@foreach (var item in Model) {
    <tr>
        <td>
            @Html.DisplayFor(modelItem => item.Description)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.OrderLength)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.CompletedLenght)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.DailyProduction)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.CreatedDateTime)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.LastModifiedDatetime)
        </td>
        <td>
            @Html.ActionLink("Edit", "Edit", new { id=item.OrderId }) |
            @Html.ActionLink("Details", "Details", new { id=item.OrderId }) |
            @Html.ActionLink("Delete", "Delete", new { id=item.OrderId })
        </td>
    </tr>
}

</table>
